package cn.stylefeng.guns.sys.modular.system.entity.Enum;

import lombok.Getter;

@Getter
public enum ProjectTaskEnum {
    TASK_1(1, "店名"),

    TASK_2(2, "工程条件"),

    TASK_3(3, "商务条件"),

    TASK_5(5, "工程总监确认"),

    TASK_6(6, "开发总监确认"),

    TASK_62(62, "开发区域经理确认"),

    TASK_7(7, "营运总监确认"),

    TASK_8(8, "督导"),

    TASK_9(9, "工程部"),

    TASK_10(10, "租房"),

    TASK_11(11, "营业执照"),

    TASK_12(12, "健康证"),

    TASK_13(13, "卫生许可证"),

    TASK_14(14, "网上建店"),

    TASK_15(15, "配送要货"),

    TASK_16(16, "确定开业时间"),

    TASK_17(17, "当地供货商"),

    TASK_18(18, "股份是否缴齐"),

    TASK_19(19, "可乐机报备"),

    TASK_20(20, "可乐机到店安装"),

    TASK_21(21, "收银系统"),

    TASK_22(22, "预估开业时间"),

    TASK_23(23, "租房日期"),

    TASK_24(24, "租房价格"),

    TASK_25(25, "租房押金"),

    TASK_26(26, "租房面积"),

    TASK_27(27, "租房地址"),

    TASK_29(29, "房东电话"),

    TASK_30(30, "现场踏勘"),

    TASK_31(31, "出图日期"),

    TASK_32(32, "开工日期"),

    TASK_33(33, "预估完工日期"),

    TASK_34(34, "实际完工日期"),

    TASK_35(35, "交店"),

    TASK_36(36, "网上建店"),

    TASK_37(37, "线上套餐"),

    TASK_38(38, "排队机"),

    TASK_39(39, "督导确认完工"),

    TASK_40(40, "营运总监指定营运经理"),

    TASK_41(41, "营运经理指定督导"),

    TASK_61(61, "开发人员指定营运经理");

    ProjectTaskEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    private Integer code;

    private String message;

    public static ProjectTaskEnum getByCode(Integer value){
        for(ProjectTaskEnum transactType : values()){
            if (transactType.getCode().equals(value)) {
                return transactType;
            }
        }
        return null;
    }

}
